{template header.html}
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		{$menu}
	</div>
	<div class="bk10"></div>
	<div class="explain-col">
        <form method="post" action="" name="searchform" id="searchform">
		<input name="search" id="search" type="hidden" value="1" />
        <select name="data[field]">
            <option value="id" {if $param.field=='id'}selected{/if}>Id</option>
            <option value="uid" {if $param.field=='uid'}selected{/if}>Uid</option>
            {loop $field $t}
            {if $t.ismain && $t.fieldname != 'inputtime'}
            <option value="{$t.fieldname}" {if $param.field==$t.fieldname}selected{/if}>{$t.name}</option>
            {/if}
            {/loop}
        </select> ：
		<input type="text" class="input-text" size="30" placeholder="{lang('html-249')}" value="{$param['keyword']}" name="data[keyword]" />&nbsp;
        &nbsp;
		{lang('html-563')} ：
		{dr_field_input('start', 'Date', array('option'=>array('format'=>'Y-m-d','width'=>80)), (int)$param['start'])}
		-&nbsp;
		{dr_field_input('end', 'Date', array('option'=>array('format'=>'Y-m-d','width'=>80)), (int)$param['end'])}
		&nbsp;
		<input type="submit" value="{lang('search')}" class="button" name="search" />
		</form>
	</div>
	<div class="bk10"></div>
	<div class="table-list">
		<form action="" method="post" name="myform" id="myform">
        <input name="action" id="action" type="hidden" value="" />
		<table width="100%">
		<thead>
		<tr>
			<th width="20" align="right"><input name="dr_select" id="dr_select" type="checkbox" onClick="dr_selected()" />&nbsp;</th>
			<th class="{ns_sorting('displayorder')}" name="displayorder" width="30" align="center">{lang('order')}</th>
			<th class="{ns_sorting('id')}" name="id" width="40" align="left">Id</th>
			<th class="{ns_sorting('title')}" name="title" align="left">{lang('html-375')}</th>
            <th class="{ns_sorting('author')}" name="author" width="80" align="center">{lang('101')}</th>
			<th class="{ns_sorting('inputtime')}" name="inputtime" width="120" align="left">{lang('html-563')}</th>
			<th align="left" class="dr_option">{lang('option')}</th>
		</tr>
		</thead>
		<tbody>
		{loop $list $t}
		<tr>
			<td align="right"><input name="ids[]" type="checkbox" class="dr_select" value="{$t.id}" />&nbsp;</td>
			<td align="center"><input class="input-text displayorder" type="text" name="data[{$t['id']}][displayorder]" value="{$t['displayorder']}" /></td>
			<td align="left">{$t.id}</td>
			<td align="left"><a href="{dr_url($form.'/edit',array('id' => $t.id))}">{dr_keyword_highlight($t.title, $param.keyword)}</a></td>
            <td align="center" class="sorting2"><a href="javascript:;" onclick="dr_dialog_member('{$t.uid}')">{dr_strcut($t.author, 10)}</a></td>
            <td align="left">{dr_date($t.inputtime, NULL, 'red')}</td>
			<td align="left" class="dr_option">
			<a class="aedit" href="{dr_url($form.'/edit',array('id' => $t.id))}">{lang('html-564')}</a>
			</td>
		</tr>
		{/loop}
		<tr>
			<td width="20" align="right"><input name="dr_select" id="dr_select" type="checkbox" onClick="dr_selected()" />&nbsp;</td>
			<td colspan="7" align="left">
			<input type="button" class="button" value="{lang('del')}" name="option" onClick="$('#action').val('del');dr_confirm_set_all('{lang('015')}')" />
            <input type="button" class="button" value="{lang('order')}" name="option" onClick="$('#action').val('order');dr_confirm_set_all('{lang('015')}')" />
            <div class="onShow">{lang('html-565')}</div>
			</td>
		</tr>
        <tr>
            <td colspan="8" align="left" style="border:none">
                <p>{dr_lang('html-735', 'listc', $tpl)}</p>
            </td>
        </tr>
		</tbody>
		</table>
		</form>
        <div id="pages"><a>{dr_lang('html-346', $param['total'])}</a>{$pages}</div>
	</div>
</div>
{template footer.html}